package com.dreamwhale.machinery.service;

import com.dreamwhale.machinery.entity.Lease;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 去租赁 服务类
 * </p>
 *
 * @author Author
 * @since 2020-06-06
 */
public interface LeaseService extends IService<Lease> {


    /**
     * 发布租赁
     *
     * @param lease
     * @return
     */
    int insertLeases(Lease lease);

    /**
     * 查询我发布的租赁
     *
     * @param userId
     * @return
     */
    List<Lease> selectLeaseByUserId(Integer userId);

    /**
     * 查询我发布的租赁
     *
     * @param
     * @return
     */
    List<Lease> selectLeases(Integer infoId);

    /**
     * 查询我发布的租赁详情
     *
     * @param infoId
     * @return
     */
    Lease selectLeaseByLeadeIds(Integer infoId);

}
